/**
 * 
 */
package org.easybuy.serviceimpol;

import java.util.List;

import org.easybuy.dao.ProductDao;
import org.easybuy.daoimpol.ProductDaoImpol;
import org.easybuy.entity.Product;
import org.easybuy.service.ProductService;

/**
 * @author 许高峰
 * @业务层实现类
 * 
 */
public class ProductServiceImpol implements ProductService {
	ProductDao productDao = new ProductDaoImpol();

	// 根据三级标题ID查找商品
	@Override
	public List<Product> getAllProductBy3Id(int ID3) {

		return productDao.getAllProductBy3Id(ID3);
	}

	// 根据id查找商品
	@Override
	public List<Product> getAllProductsById(int id) {
		// TODO Auto-generated method stub
		return productDao.getAllProductsById(id);
	}

}
